﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
using System.Transactions;

namespace Tema2_Adabd.DataLayer
{
    public partial class AccesBazaDeDate
    {
        public void stergeTemporarProdusul(string numeProdus,string numeAdmin)
        {
            using (var db = new Tema2Entities1())
            {
                db.stergereTemporara(numeProdus,numeAdmin);
            }
        }

        public void stergeDefinitivProdusul(string numeProdus,string numeAdmin)
        {
            using (var db = new Tema2Entities1())
            {
                db.stergereProdus(numeProdus,numeAdmin);
            }
        }

    }
}